// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2022 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------

import request from "@/utils/request.js";

/**
 * 用户押金支付
 * @param object data
 */
export function depositPay(data) {
	return request.post('user_deposit_pay', data);
}


/**
 * 物流信息订单
 * 
 */
export function logisticOrderList(data) {
	return request.get('order_logistic_list', data);
}


/**
 * 物流信息详情
 * @param object data
 */
export function detail(id) {
	return request.get(`order_logistic_detail/${id}`);
}

/**
 * 取消订单
 * @param object data
 */
export function cancel(id) {
	return request.get(`order_logistic_cancel/${id}`);
}

/**
 * 申请退款订金
 * @param object data
 */
export function replyOrderAmount(id) {
	return request.get(`order_logistic_reply_order_mount/${id}`);
}

/**
 * 取消申请退款订金
 * @param object data
 */
export function cancelReplyOrderAmount(id) {
	return request.get(`order_logistic_cancel_reply_order_mount/${id}`);
}

/**
 * 用户支付运费
 * @param object data
 */
export function pay(data) {
	return request.post('user_pay_amount', data);
}

/**
 * 完成订单
 * @param object data
 */
export function finishedOrder(id) {
	return request.get(`user_finished_order/${id}`);
}
